package com.yuju.order.enums;
public enum CheckinTypeEnum {
	 	SANKE((byte)1,"公寓房"),
	    LOCAL((byte)2, "全天房"),
		CENTRAL((byte)3,"钟点房"),
		WE_CHART((byte)4, "特殊房"),
		OFFICAL_WEB((byte)5, "免费房"),
		XIECHENG((byte)6, "自用房");
	    private byte value;
	    private String name;

	    CheckinTypeEnum(byte value, String name) {
	        this.name = name;
	        this.value = value;
	    }

	    public String getName() {
	        return name;
	    }

	    public byte getValue() {
	        return value;
	    }
	    public  static String getNameByValue(byte value){
	    	for(CheckinTypeEnum e : CheckinTypeEnum.values()){
	    		if(e.getValue()== value){
	    			return e.getName();
	    		}
	    	}
			return "未知枚举";
	    }
	    
}
